package com.qzdsoft.erpcloud.service.basic;

import java.util.List;

import com.qzdsoft.erpcloud.domain.basic.Currency;
import com.qzdsoft.erpcloud.vo.query.basic.CurrencyInfo;
import com.qzdsoft.vo.LayTableResponse;
import com.qzdsoft.vo.Response;

/**
 * Created by Admin
 */
public interface CurrencyService {
    
    /**
     * 根据id查找币种信息
     * @param id
     * @return
     */
    Currency selectById(Integer id);
    /**
     * 新增与修改保存币种信息
     * @param id
     * @param company_id
     * @param name
     * @param decode
     * @param symbol
     * @param is_main
     * @param is_preinstall
     * @param exchang_rate_type
     * @param exchang_rate
     * @param max_translate
     * @param translate_type
     * @param remark
     * @return
     */
    Response<String> saveOrUpd(Integer id, Integer company_id, String name, String decode, String symbol, Integer is_main, Integer is_preinstall, Integer exchang_rate_type, Float exchang_rate, Float max_translate, Integer translate_type, String remark);
    /** 
     * 根据id删除币种信息
     * @param id
     * @return
     */
    Response<String> del(Integer id);

    /**
     * 根据条件获取币种信息列表
     * @param name
     * @param companyId
     * @param isPreinstall
     * @param exchangRateType
     * @param translateType
     * @param start
     * @param pageSize
     * @return
     */
    LayTableResponse<CurrencyInfo> selectData(String name, Integer companyId, Integer isPreinstall, Integer exchangRateType, Integer translateType, Integer start, Integer pageSize);
    
    /**
     * 根据公司id查询币种信息
     * @param companyId
     * @return
     */
    List<Currency> selectAll(Integer companyId);
    
}
